
function get_max_line(heigth, per_heigth) {
	return heigth % per_heigth > 0 ? 0 - (0 - parseInt(heigth / per_heigth) - 1) : parseInt(heigth / per_heigth);
};

var _purchase_type = '';
_purchase_type = _purchase_type + '<option value="11">买</option>';
_purchase_type = _purchase_type + '<option value="12">还</option>';
function create_purchase_type(){
	$('#type').html(_purchase_type);
};

var _shipment_type = '';
_shipment_type = _shipment_type + '<option value="21">卖</option>';
_shipment_type = _shipment_type + '<option value="22">借</option>';
function create_shipment_type(){
	$('#type').html(_shipment_type);
};
var _type = '<option value="" selected>&nbsp;</option>';
function create_all_type(){
	_type = _type + _purchase_type + _shipment_type;
	$('#type').html(_type);
};
